import { defineStore }  from "pinia";

export const useDateStore = defineStore('numStore', {

  state: () => {
    return {
      num: 1
    }
  },

  getters: {
    doubleDate: (state) => {
      return state.num * 2;
    }
  },

  actions: {

    increment() {
      this.num++;
    },

    decrement() {
      this.num--;
    },

    restore() {
      this.num = 1;
    }

  }

})